import request from '@/utils/request';

export async function queryNews(params: any) {
  return request(PORTAL_PATH + '/api/jianghudongtai', {
    params,
  });
}

export async function removeNews(params: any) {
  return request('/api/jianghudongtai', {
    method: 'POST',
    data: { ...params, method: 'delete' },
  });
}

export async function addNews(params: any) {
  return request('/api/jianghudongtai', {
    method: 'POST',
    data: { ...params, method: 'post' },
  });
}

export async function updateNews(params: any) {
  return request('/api/jianghudongtai', {
    method: 'POST',
    data: { ...params, method: 'update' },
  });
}
